import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const state = {
  Token:{
    userToken(){
      return localStorage.getItem("Token")
    }
  },//用户标识
  res:"",// 保存
  phone:"",
}
export default new Vuex.Store({
  state,
  mutations:{
    setToken(state,token){
      localStorage.setItem("Token",token)
    },
    dele(state){
      localStorage.removeItem("Token")
    },
    setRes(state,res){
      state.res=res
    },
  },
})